package contactbook.dao;

import javax.persistence.EntityManager;

import contactbook.model.Group;

public interface GroupDAOInterface {
	
	public static String JNDI = "ContactBookEar/GroupDAO/local";
	
	public Group addGroup(Group group);
	public void deleteGroup(int groupId);
	
	public Group findById(int groupId);
	public Group findByName(String name);
	
	public boolean exists(int groupId);
	
	public void update(Group group);
	
	/* Change EntityManager : for business layer tests */
	public void setEntityManager(EntityManager em);
}
